package com.demo.resourcecode.service;

import java.util.List;
import java.util.Map;

public abstract class MessageServiceImpl implements MessageService {

	private String testStr;
	private List<String> p;

	public MessageServiceImpl(String name, Student student, Map<String, String> map){
		System.out.println("init messageServiceImpl");
		System.out.println(name);
	}

	@Override
    public String getMessage() {
        return "hello world";
    }

	@Override
	public void changeMe() {
		System.out.println("原方法");
	}

	@Override
	public void showMe() {
		this.getBean().showMe();
	}

	public abstract User getBean();

	public String getTestStr() {
		return testStr;
	}

	public void setTestStr(String testStr) {
		this.testStr = testStr;
	}

	public List<String> getP() {
		return p;
	}

	public void setP(List<String> p) {
		this.p = p;
	}

}